import request from '@/utils/request'

export function codeImg() {
  return request({
    url: '/xhy/admin/account/captcha',
    method: 'post'
  })
}
export function goLogin(data) {
  return request({
    url: '/xhy/admin/account/login',
    method: 'post',
    data
  })
}
export function argument(data) {
  return request({
    url: '/xhy/admin/task/getParams',
    method: 'post',
    data
  })
}
export function recognize(data) {
  return request({
    url: '/xhy/admin/task/ocrFile',
    method: 'post',
    data
  })
}
export function getAllAddress(data) {
  return request({
    url: '/xhy/admin/task/addressSplit',
    method: 'post',
    data
  })
}
export function getPrice(data) {
  return request({
    url: '/xhy/admin/task/amount',
    method: 'post',
    data
  })
}
export function goSubmit(data) {
  return request({
    url: '/xhy/admin/task/release',
    method: 'post',
    data
  })
}

// 任务列表接口
export function taskList(data) {
  return request({
    url: '/xhy/admin/task/list',
    method: 'post',
    data
  })
}
// 订单状态 xhy/admin/task/progress/list
export function orderStatus(data) {
  return request({
    url: '/xhy/admin/task/progress/list',
    method: 'post',
    data
  })
}
// 任务详情
export function taskDetail(data) {
  return request({
    url: '/xhy/admin/task/detail',
    method: 'post',
    data
  })
}
// 删除 xhy/admin/task/del
export function taskDel(data) {
  return request({
    url: '/xhy/admin/task/del',
    method: 'post',
    data
  })
}
// 运费修改 xhy/admin/task/part/modify
export function setFreight(data) {
  return request({
    url: '/xhy/admin/task/part/modify',
    method: 'post',
    data
  })
}
// 确认完成
export function completion(data) {
  return request({
    url: '/xhy/admin/task/confirm',
    method: 'post',
    data
  })
}
// 查看箱信息和工厂信息
export function boxPicture(data) {
  return request({
    url: '/xhy/admin/task/credentials',
    method: 'post',
    data
  })
}
// 位置接口
export function nowLocation(data) {
  return request({
    url: '/xhy/admin/car/position',
    method: 'post',
    data
  })
}
// 后台任务基础参数 xhy/admin/task/order/param
export function baseData() {
    return request({
      url: '/xhy/admin/task/order/param',
      method: 'post',
    })
}
//   审核通过 xhy/admin/task/exam
export function approve(data) {
    return request({
      url: '/xhy/admin/task/plat/edit',
      method: 'post',
      data
    })
}
// getBoxInfo
export function getBoxInfo(data) {
    return request({
      url: '/xhy/admin/task/order/need',
      method: 'post',
      data
    })
}
// 确认提箱完成装卸货 xhy/admin/task/order/confirm
export function affirmTakeBox(data) {
    return request({
      url: '/xhy/admin/task/order/confirm',
      method: 'post',
      data
    })
} 
// 管理端获取杂费参数 xhy/admin/task/mixed/cost
export function otherCost() {
    return request({
      url: '/xhy/admin/task/mixed/cost',
      method: 'post',
    })
} 
// 获取接单人 xhy/admin/task/order/taker
export function getUser(data) {
    return request({
      url: '/xhy/admin/task/order/taker',
      method: 'post',
      data
    })
} 
// 获取拼柜信息 xhy/admin/task/order/relation
export function getJoint(data) {
    return request({
      url: '/xhy/admin/task/order/relation',
      method: 'post',
      data
    })
} 
// 接单 xhy/admin/task/order/receive
export function takeOrder(data) {
    return request({
      url: '/xhy/admin/task/order/receive',
      method: 'post',
      data
    })
} 
// 修改杂费 xhy/admin/task/order/expense
export function setPrice(data) {
    return request({
      url: '/xhy/admin/task/order/expense',
      method: 'post',
      data
    })
}
// 修改箱号 xhy/admin/task/plat/containerNo
export function setBoxNumber(data) {
    return request({
      url: '/xhy/admin/task/plat/containerNo',
      method: 'post',
      data
    })
}
// 上传文件 /xhy/admin/uploadFile
export function fileUpload(data) {
    return request({
      url: '/xhy/admin/uploadFile',
      method: 'post',
      data
    })
}
// 用户权限
export function getMenusList(data) {
    return request({
      url: '/xhy/admin/menus/getList',
      method: 'post',
      data
    })
}
// 过磅信息
export function getWeighing(data) {
    return request({
      url: '/xhy/admin/task/weighed/detail',
      method: 'post',
      data
    })
}
// 修改过磅信息 xhy/admin/task/weighed/save
export function editWeighing(data) {
    return request({
      url: '/xhy/admin/task/weighed/save',
      method: 'post',
      data
    })
}
// 查看 xhy/admin/setting/getInfo
export function settingGetInfo(data) {
    return request({
      url: '/xhy/admin/setting/getInfo',
      method: 'post',
      data
    })
}
// 修改费用 xhy/admin/setting/edit
export function editGetInfo(data) {
    return request({
      url: '/xhy/admin/setting/edit',
      method: 'post',
      data
    })
}
// 获取距离 
export function getPathDistance(data) {
    return request({
      url: '/xhy/admin/task/pathDistance',
      method: 'post',
      data
    })
}
// 接单人选择柜子 optionsBox
export function optionsBox(data) {
    return request({
      url: '/xhy/admin/task/order/spellContainer',
      method: 'post',
      data
    })
}
// 取消运单
export function cancelOrders(data) {
    return request({
      url: '/xhy/admin/task/order/cancel',
      method: 'post',
      data
    })
}
// 首页卡片权限
export function indexMenus(data) {
    return request({
      url: '/xhy/admin/quickMenus',
      method: 'post',
      data
    })
}
// 企业联系人
export function bussPeople(data) {
    return request({
      url: '/xhy/admin/task/contact',
      method: 'post',
      data
    })
}
// 信息检索
export function infoSelectData(data) {
    return request({
      url: '/xhy/admin/task/waybillInfo',
      method: 'post',
      data
    })
}
// 企业结算账期
export function period(data) {
    return request({
      url: '/xhy/admin/task/period',
      method: 'post',
      data,
    })
}
// 查看报价信息
export function getQuotationInfo(data) {
    return request({
      url: '/xhy/admin/task/order/quotation/list',
      method: 'post',
      data
    })
}
// 货主确认成交
export function quotationSubmit(data) {
    return request({
      url: '/xhy/admin/task/order/undertaker',
      method: 'post',
      data
    })
}
// 价格地图 xhy/admin/task/quotationMap
export function publishQuotation(data) {
    return request({
      url: '/xhy/admin/task/quotationMap',
      method: 'post',
      data
    })
}
// 查询距离xhy/admin/task/getPathDistance
export function getPathDistances(data) {
    return request({
      url: '/xhy/admin/task/getPathDistance',
      method: 'post',
      data
    })
}
// 地址信息 getAddressInfo
export function getAddressInfo(data) {
    return request({
      url: '/xhy/admin/factory/list',
      method: 'post',
      data
    })
}
// 修改任务验证 getAddressInfo
export function setTaskModify(data) {
    return request({
      url: '/xhy/admin/modify/verify',
      method: 'post',
      data
    })
}
// 临时下架任务
export function changeTask(data) {
    return request({
      url: '/xhy/admin/task/change/status',
      method: 'post',
      data
    })
}
// 订单发布任务 xhy/admin/task/publish
export function orderPublish(data) {
    return request({
      url: '/xhy/admin/task/publish',
      method: 'post',
      data
    })
}
// 件重尺 xhy/admin/task/order/brand/volume
export function Piecewc(data) {
    return request({
      url: '/xhy/admin/task/order/brand/volume',
      method: 'post',
      data
    })
}
// 生成指派订单xhy/admin/task/assign/order
export function assignOrder(data) {
    return request({
      url: '/xhy/admin/task/assign/order',
      method: 'post',
      data
    })
}
// 接单人列表
export function carrierList(data) {
    return request({
      url: '/xhy/admin/task/order/carrier',
      method: 'post',
      data
    })
}
// 验证资金池xhy/admin/task/assign/fund
export function assignFund(data) {
    return request({
      url: '/xhy/admin/task/assign/fund',
      method: 'post',
      data
    })
}
// 退款列表
export function refundList(data) {
    return request({
      url: '/xhy/admin/order/taker/authRefundList',
      method: 'post',
      data
    })
}
// 退款关键字搜索
export function refundKey(data) {
    return request({
      url: '/xhy/admin/order/taker/searchCriteria',
      method: 'post',
      data
    })
}
// 退款申请 xhy/admin/order/taker/auditAuthRefund
export function refundApply(data) {
    return request({
      url: '/xhy/admin/order/taker/auditAuthRefund',
      method: 'post',
      data
    })
}
// 订单管理验证资金池 xhy/admin/task/order/fund/verify
export function isVerify(data) {
    return request({
      url: '/xhy/admin/task/order/fund/verify',
      method: 'post',
      data
    })
}
// 发布指派获取实时运费
export function getNowPrice(data) {
    return request({
      url: '/xhy/admin/task/settlement/amount',
      method: 'post',
      data
    })
}
// 订单管理修改接单人 setTakeOrder
export function setTakeOrder(data) {
    return request({
      url: '/xhy/admin/task/order/change',
      method: 'post',
      data
    })
}
// 指派订单获取新运费 xhy/admin/task/order/actual/amount
export function getActualAmount(data) {
    return request({
      url: '/xhy/admin/task/order/actual/amount',
      method: 'post',
      data
    })
}
// 修改订单获取实时运费 xhy/admin/task/order/actual/amount
export function setActualAmount(data) {
    return request({
      url: '/xhy/admin/task/order/freight/info',
      method: 'post',
      data
    })
}
// 帮扶记录
export function getFundAssist(data) {
    return request({
      url: '/xhy/admin/fundPool/getHelpList',
      method: 'post',
      data
    })
}
// 修改状态 xhy/admin/fundPool/searchCriteria
export function searchFundData(data) {
    return request({
      url: '/xhy/admin/fundPool/searchCriteria',
      method: 'post',
      data
    })
}
// 设置状态 xhy/admin/fundPool/handleHelp
export function setFundStatus(data) {
    return request({
      url: '/xhy/admin/fundPool/handleHelp',
      method: 'post',
      data
    })
}











